package com.cy.store.service.ex;

/** 业务层异常的基类
 *
 *所有的自定义异常，都应是RuntimeException的子孙类异常!!!。项目中目前异常的继承结构是见下：
 *RuntimeException
 * -- ServiceException
 * -- UsernameDuplicateException
 * -- InsertException
 *
 * */
public class ServiceException extends RuntimeException{
    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    protected ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
